package com.example.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_storage")
public class Storage {
	@Id
	@Column(name = "goods_id")
	private Integer goodsId;
	private Integer quantity;

	public Storage() {
	}

	public Storage(Integer goodsId, Integer quantity) {
		this.goodsId = goodsId;
		this.quantity = quantity;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
}
